package com.yuanfeng.activity.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * @ClassName
 * @Description
 * @Author cyp
 * @Date 2023-06-13 09:05:20
 * @Version 1.0
 **/
@FeignClient(name = "mall-goods", url = "http://localhost:8083")
public interface GoodsServiceClient {


    /**
     * 修改商品是否加入促销
     * @param commonIdList
     */
    @PostMapping("/goods/common/update/is/xian")
    public void updateCommonIsXian2(@RequestBody List<Integer> commonIdList);

    /**
     * 修改商品是否加入促销 feign
     * @param param
     */
    @PostMapping("/goods/common/update/is/xian/byCommonId")
    public void updateCommonIsXian(@RequestBody Map<String,Object> param);


}
